package com.liwei.blog.vo;
/** 
* @author 作者 liwei: 
* @version 创建时间：2018年12月3日 下午7:26:55 
*  response 返回数据基础类
*/
public class Response <T extends Object> {
	private boolean success;//处理是否成功
	private String message;//消息
	private T body;//数据
	
	
	public Response(boolean success, String message, T body) {
		super();
		this.success = success;
		this.message = message;
		this.body = body;
	}
	
	
	public Response(boolean success, String message) {
		super();
		this.success = success;
		this.message = message;
	}


	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getBody() {
		return body;
	}
	public void setBody(T body) {
		this.body = body;
	}
	
	
}
